<template>
  <div class="bb-bg">
    <div class="co-title">
      <div class="co-title-name">
        <img src="@/assets/cockpit/bb2-title.png" alt="">
      </div>
      <div class="co-title-right">
        <div class="co-title-breathe">
          <i></i><i></i><i></i><i></i><i></i><i></i>
        </div>
      </div>
    </div>
    <!-- <div class="bpl-container">
      <ul class="bb2-main">
        <li class="bb2-each">
          <i class="bb2-e-icon"><img src="@/assets/cockpit/bb2-e-icon1.png" alt=""></i>
          <p class="bb2-e-title">矿山矿产</p>
          <div class="bb2-e-list" v-if="infoData.diKuang">
            <div class="bb2-elis">
              <div><h6>市级发证矿山数</h6></div>
              <p>{{ infoData.diKuang.certMineQuantityOfCity }}<span>处</span></p>
            </div>
            <div class="bb2-elis">
              <div><h6>全市沙石土矿总储量</h6></div>
              <p>{{ infoData.diKuang.dinaReservesOfCity }}<span>亿吨</span></p>
            </div>
          </div>
        </li>
        <li class="bb2-each">
          <i class="bb2-e-icon"><img src="@/assets/cockpit/bb2-e-icon2.png" alt=""></i>
          <p class="bb2-e-title">地质灾害</p>
          <div class="bb2-e-list" v-if="infoData.diKuang">
            <div class="bb2-elis">
              <div>
                <h6>地质灾害隐患点</h6>
                <el-popover
                  placement="top-start"
                  width="200"
                  trigger="hover">
                  <ul class="bb2-elis-box">
                    <li>威胁人数：{{ infoData.diKuang.menacePeoples }}人</li>
                    <li>威胁资产：{{ infoData.diKuang.menaceAssets }}万元</li>
                  </ul>
                  <i class="bb2-elis-btn" slot="reference"></i>
                </el-popover>
              </div>
              <p>{{ infoData.diKuang.geologyDamagePoint }}<span>处</span></p>
            </div>
            <div class="bb2-elis">
              <div>
                <h6>综合防治项目</h6>
                <el-popover
                  placement="top-start"
                  width="200"
                  trigger="hover">
                  <ul class="bb2-elis-box">
                    <li>投入金额：{{ infoData.diKuang.investMoney }}万元</li>
                    <li>支出金额：{{ infoData.diKuang.expendMoney }}万元</li>
                  </ul>
                  <i class="bb2-elis-btn" slot="reference"></i>
                </el-popover>
              </div>
              <p>{{ infoData.diKuang.multiManagePrjQuantity }}<span>个</span></p>
            </div>
          </div>
        </li>
      </ul>
    </div> -->
    <div class="bpl-container">
      <ul class="bb2-main">
        <li class="bb2-each">
          <i class="bb2-e-icon"><img src="@/assets/cockpit/bb2-e-icon1.png" alt=""></i>
          <p class="bb2-e-title">矿山矿产</p>
          <div class="bb2-e-list">
            <div class="bb2-elis">
              <div><h6>采矿权数量</h6></div>
              <p>89<span>个</span></p>
            </div>
            <div class="bb2-elis">
              <div><h6>探矿权数量</h6></div>
              <p>4<span>个</span></p>
            </div>
          </div>
        </li>
        <li class="bb2-each">
          <i class="bb2-e-icon"><img src="@/assets/cockpit/bb2-e-icon2.png" alt=""></i>
          <p class="bb2-e-title">地质灾害</p>
          <div class="bb2-e-list">
            <div class="bb2-elis">
              <div>
                <h6>地质灾害隐患点</h6>
              </div>
              <p>862<span>处</span></p>
            </div>
            <div class="bb2-elis">
              <div>
                <h6>地质灾害监测预警点</h6>
              </div>
              <p>52<span>处</span></p>
            </div>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator'

@Component({
  name: 'BbItem2',
  components: {
  }
})
export default class BbItem2 extends Vue {
  @Prop({default: {}}) infoData!: any
  mounted() {}
}
</script>
<style lang="scss" scoped>
@import '~@/styles/cockpit.scss';
.bb-bg {
  width: 100%;
  height: 100%;
  padding: 16px 12px 4px;
  background: url('~@/assets/cockpit/bb-bg.png') no-repeat 0/ 100% 100%;
  .bpl-container {
    padding-top: 4px;
  }
}
.bb2-main {
  width: 100%;
  .bb2-each {
    width: 100%;
    padding: 0 4px 0 12px;
    display: flex;
    flex-flow: row nowrap;
    border-bottom: 1px solid rgba(#fff, .1);
    &:last-child {
      border-bottom: 0;
    }
    .bb2-e-icon {
      flex: none;
      width: 56px;
      margin: 12px 16px 0 0;
      >img {
        display: block;
        width: 100%;
      }
    }
    .bb2-e-title {
      flex: none;
      width: 20px;
      height: 88px;
      padding: 10px 4px 0 0;
      background: url('~@/assets/cockpit/bb2-e-title.png') no-repeat 0/ 100% 100%;
      font-size: 14px;
      color: #fff;
      text-align: center;
      margin: 0 12px 0 0;
    }
    .bb2-e-list {
      flex: auto;
      display: flex;
      flex-flow: row nowrap;
      justify-content: flex-start;
      .bb2-elis {
        flex: none;
        width: 50%;
        padding: 12px 20px 0 20px;
        position: relative;
        &::before {
          content: '';
          display: block;
          width: 4px;
          height: 4px;
          background: #F9F0D4;
          border-radius: 1px;
          box-shadow: 0 0 4px 1px #F0B04A;
          transform: rotate(45deg);
          position: absolute;
          top: 22px;
          left: 8px;
        }
        >div {
          >h6 {
            display: inline-block;
            font-size: 12px !important;
            line-height: 24px;
            color: #BFFEFF;
            text-align: left;
            font-weight: 400;
            vertical-align: middle;
          }
        }
        >p {
          font-size: 15px !important;
          line-height: 24px;
          color: #fff;
          text-align: left;
          font-weight: 400;
          margin: 8px 0 0 0;
          >span {
            font-size: 12px !important;
            color: #fff;
            margin: 0 0 0 2px;
          }
        }
        .bb2-elis-btn {
          display: inline-block;
          width: 24px;
          height: 24px;
          background: url('~@/assets/cockpit/bb2-elis-warn.png') no-repeat center center/ 36px 39px;
          vertical-align: middle;
        }
        .bb2-elis-box {
          >li {
            font-size: 12px !important;
            line-height: 20px;
            color: #262626;
            text-align: left;
          }
        }
      }
    }
  }
}
</style>
